#include "json.hpp"
#include <iostream>
#include <vector>
#include <map>

using namespace std;
using json = nlohmann::json;

string func1()
{
    json js;
    js["name"] = "zhangsan";
    js["from"] = "linyi";
    
    vector<int> vec{1,2,3};
    js["list"] = vec;
    cout<<js<<endl;
    return js.dump();
}

 int main()
 {
    string buff1 = func1();
    json jsbuf = json::parse(buff1);
    cout << jsbuf["list"]<<endl;

    return 0;
 }